﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Web.Caching;

using SalePartial.BLL;
using SalePartial.Model;
using System.Collections.Generic;

public partial class controls_front_ResumePopu : System.Web.UI.UserControl
{
    //private SalePartial.BLL.ResumeBLL resumeBll = ResumeBLL.Instance;
    private DateTime expireTime = DateTime.Now.AddMinutes(2);

    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            bindResume();
        }
    }
    private void bindResume()
    {
        //string cacheKey = "limitResumes";
        //if (Cache[cacheKey] != null)
        //{
        //    this.resumeList.DataSource = (IEnumerable)Cache[cacheKey];
        //}
        //else
        //{
        //    List<ResumeInfo> list = resumeBll.GetTopResumeList(8);
        //    Cache.Add(cacheKey, list, null, expireTime, TimeSpan.Zero, CacheItemPriority.High, null);
        //    this.resumeList.DataSource = list;
        //}

        //this.resumeList.DataBind();
    }
}
